package com.symria.server.bo.ad;

import java.util.Date;
import java.util.List;

import com.symria.framework.page.Page;
import com.symria.server.bo.common.CommonService;
import com.symria.server.dao.ad.AdDao;
import com.symria.server.po.AdAppReport;
import com.symria.server.po.AdAreaReport;
import com.symria.server.po.AdCampaign;
import com.symria.server.po.SysAreaInfo;

public class AdService extends CommonService {
	private AdDao adDao; 
	public AdDao getAdDao() {
		return adDao;
	}
	public void setAdDao(AdDao adDao) {
		this.adDao = adDao;
	}
	public void searchAdCampaign(AdCampaign ad,String viewType,Integer userId,Page page){
            adDao.searchAdCampaign(ad, viewType,userId, page);
	}
	public void reportByDate(Date beginDate,Date endDate,Integer userId,Page page){
		adDao.reportByDate(beginDate, endDate, userId, page);
	}
	public void reportByAd(AdAppReport aar,Date beginDate,Date endDate,Integer userId,Page page){
		adDao.reportByAd(aar, beginDate, endDate,userId,page);
	}
	public void reportByAdArea(AdAreaReport aar,Date beginDate,Date endDate,Integer userId,Integer  areaId,Page page){
		adDao.reportByAdArea(aar, beginDate, endDate, userId, areaId,page);
	}
	public void reportByApp(AdAppReport aar,Date beginDate,Date endDate,Integer userId,String adName,Page page){
		adDao.reportByApp(aar, beginDate, endDate, userId,adName, page);
	}
	public List<SysAreaInfo> queryAreaInfo(Integer userId){
	    return adDao.queryAreaInfo(userId);
	}
	
	
	
}
